package com.lww.integral.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lww.springcloudapi.entity.TabCommodity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lww.springcloudapi.pojo.TabHallUsermessage;

import java.util.List;

/**
 * <p>
 * 积分商城 服务类
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
public interface TabCommodityService extends IService<TabCommodity> {

    /**
     * 根据商品名字进行模糊查询
     *
     * @param name
     * @return
     */
    Page<TabCommodity> findQueryByCommodity(String name, Integer money, Integer pageNo, Integer pageSize);


    /**
     * 添加积分商品
     *
     * @param tabCommodity
     * @return
     */
    boolean findInsertCommodity(TabCommodity tabCommodity);

    /**
     * 修改积分商品
     *
     * @param tabCommodity
     * @return
     */
    boolean findUpdateCommodity(TabCommodity tabCommodity);

    /**
     * 删除积分商品
     *
     * @param id
     * @return
     */
    boolean findDelCommodity(Integer id);
}
